package com.xjoyt.pay.master.dao;

import java.util.List;
import java.util.Map;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.DistributorOrderGroupParam;
import com.xjoyt.pay.master.po.Distributor;
import com.xjoyt.pay.merchant.register.params.DistributorPageParam;

public interface DistributorRepositoryCustom {

	Distributor findOneByAccount(String account);

	Distributor findOneByNo(String no);

	Long getLastNo();

	PageResult<Distributor> loadPage(PageParam<DistributorPageParam> param);

	List<Map<String, Object>> sum(List<String> ids, DistributorOrderGroupParam param);
}
